import { createApp } from 'vue'
import './style.css'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router/index'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
import Particles from "@tsparticles/vue3";
import { loadFull } from "tsparticles"
import { infolog } from '@/uilts/uilts-log'
window.customlog = infolog
const app = createApp(App)
const pinia = createPinia().use(piniaPluginPersist)
app.use(router)
app.use(pinia)
app.use(Particles as any, {
    init: async (engine: any) => {
        await loadFull(engine)
    }
})

app.mount('#app')
